lcEntType Home

Checks the type of the entity (property LC_PROP_ENT_TYPE) .

 BOOL lcEntType (
   HANDLE hEntity,
   int Type
 );

Parameters
hEntity
  Handle to a graphic object.
Type
  Type of entity, one of the LC_ENT_... values.

Return Value

  TRUE if the entity matches the specified type.


Code sample:
  HANDLE hEnt;
  double R;
  hEnt = lcBlockGetFirstEnt( hBlock );
  if (hEnt != 0){
    if (lcEntType( hEnt, LC_ENT_CIRCLE ) == TRUE){
      R = lcPropGetFloat( hEnt, LC_PROP_CIRCLE_RAD );
    }
  }